import request from '../../utils/request'

/**
 * 获取订单结算信息
 */
export const getCheckoutOrderAPI = (data) => {
  return request.get('/checkout/order', data)
}

/**
 * 提交订单
 */
export const postCheckoutSubmitAPI = (data) => {
  return request.post('/checkout/submit', data)
}

/**
 * 我的-订单
 * @param {*} { dataType: all-全部，payment-待支付，delivery-待发货，received-待收货，comment-待评价, page }
 */
export const getOrderListAPI = (data) => {
  return request.get('/order/list', data)
}
